package org.textreport.core;

import java.sql.Timestamp;
import java.util.Map;
import java.util.Set;

import org.w3c.dom.Node;


public interface SQLType {
	void setSql(String sql);
	void setContext(ExecutionContext ctx);
	SQLType setParam(Object... params);
	boolean open();
	SQLType exec();
	void close();
	boolean next();
	int integer(String name);
	String string(String name);
	Timestamp date(String name);
	double number(String name);
	Node xml(String name);
	Set<String> extractParams();
	Map<String,Object> getFieldValues();
}
